<#assign contextPath=springMacroRequestContext.getContextPath() />
<#import "/public/frame/main.html" as frame />
<@frame.head "南航明珠商城-查看评价审核">
</@frame.head>

<div class="page-container">
<form method="post" name="update_form"  id="update_form"  action="${contextPath}/compaints_proposals/update_by_id"  >    
    <input type="hidden" name="id" id="compaintsProposalsid" value="${(compaintsProposals.id?c)!}" />                 
    <div class="text-c">
    <table class="table">
		<tr>
			<td> 商品名称：</td>
            <td colspan="3">${compaintsProposals.product.baseInfo.name}</td>
		</tr>
		<tr>
			<td>商品编号：</td>
            <td>${(compaintsProposals.product.id?c)!}</td>
            <td></td>
            <td></td>
        </tr>
		<tr>
            <td>评论时间：</td>
            <td>${(compaintsProposals.createDate?string("yyyy-MM-dd"))!}</td>
            <td></td>
            <td></td>
		</tr>
		<tr>
		    <td>商品质量：</td>
		    <td>
		    <div class="clearfix  mt-10">
	          <div class="star-bar star-bar-show size-M f-l va-m mr-10"  style="text-align:left;">
		        <span class="star star-${compaintsProposals.goodsQuality}"></span>
	          </div>
            </div>
            </td>     
            <td>物流配送：</td>
		    <td>
		    <div class="clearfix  mt-10">
	          <div class="star-bar star-bar-show size-M f-l va-m mr-10"  style="text-align:left;">
		        <span class="star star-${compaintsProposals.distribution}"></span>
	          </div>
            </div>
            </td>
		</tr>
		<tr>
		    <td>页面设计：</td>
		    <td>
		    <div class="clearfix  mt-10">
	          <div class="star-bar star-bar-show size-M f-l va-m mr-10"  style="text-align:left;">
		        <span class="star star-${compaintsProposals.pageDesign}"></span>
	          </div>
            </div>
            </td>    
            <td>售后服务：</td>
		    <td>
		    <div class="clearfix  mt-10">
	          <div class="star-bar star-bar-show size-M f-l va-m mr-10"  style="text-align:left;">
		        <span class="star star-${compaintsProposals.afterSaleService}"></span>
	          </div>
            </div>
            </td>
		</tr>	
    </table>
	<#if compaintsProposals.state==1>
	<table class="table">
	   <tr>
		 <td>
			<input type="radio" value="2" checked="checked" onclick="showin(1)" name="state" id="state1"/>
			通过审核
			<!-- 	赠送里程：
			<input id="giveMileage" type="text" name="giveMileage" onkeyup="countLength()" readonly="true" />
			<div id="count"> </div>  -->	
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    
			<input type="radio" value="3" onclick="showin(2)" name="state" id="state2" />
			   拒绝通过审核
			 <br />
			    拒绝通过原因说明：<div id="count">您还可以输入<font style='color: red'>250</font>个字</div>
			 &nbsp;
			 <textarea name="content" id="content" readonly="readonly" rows="3" cols="50" onkeyup="countLength()"></textarea>
			 <div id="count1"></div>
		  </td>
		</tr>
		<tr>
			<td>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input class="btn btn-success radius" onclick='buSubmit()' 
				       type="button" value="确定" />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input class="btn btn-danger radius" onclick="cancel()" type="button"value="取消" />
			</td>
		</tr>
	</table>
	<#elseif compaintsProposals.state==2>
	<div align="left" style="padding-left:15px">
		<br/><font style="color: red"> 审核已通过<br /><br/>
		获赠里程为：${compaintsProposals.giveMileage }
		</font><br/><br/>
		&nbsp;&nbsp;&nbsp;<input class="btn btn-success radius" onclick="cancel()" type="button" value="确定" />
	</div>
	<#elseif compaintsProposals.state==3>
	<div align="left"  style="padding-left:15px">
		<br/><font style="color: red"> 审核未通过<br /><br/>
		未通过原因：${compaintsProposals.content } 
		</font><br/><br/>
		&nbsp;&nbsp;&nbsp;<input  class="btn btn-success radius" onclick="cancel()" type="button" value="确定" />
	</div>
	</#if>
	</div>
</form>
    
</div>
<@frame.end "default">
</@frame.end>
</html>
<script type="text/javascript" src="${contextPath}/resources/js/compaints_proposals/get_compaints_proposalsById.js"></script>
<script type="text/javascript">
var path="${contextPath}";
</script>